Object cleanup (#307)
authortsteven4 <tsteven4@users.noreply.github.com>
Wed, 27 Feb 2019 14:25:14 +0000 (07:25 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Feb 2019 14:25:14 +0000 (07:25 -0700)
commit08610fc1107661009dc628a61a8d622d2143a2f5
tree579ffee253a93895c5f077af129cbf7a2a6fbf6d
parent83b1736c1a966dfea9adb5a79d363430ef55fd6f
Object cleanup (#307)

* elminiate some early program exits.

exits without cleanup make it harder to find memory leaks.

fix a few leaks.

enhance random format to support reading real time position data.

correct some sign related warnings.

* use invariant generator for random format.

* make compilers happy with random.

clang doesn't like:
  random.cc:61:42: note: read of non-constexpr variable 'generator' is not allowed in a constant expression
    constexpr double scalefactor = 1.0 / (*generator).max();

msvc doesn't like:
  warning C4100: 'fname': unreferenced formal parameter

* catch main.cc up with master manually.
12 files changed:
defs.h
main.cc
nmn4.cc
pocketfms_wp.cc
random.cc
reference/realtime.csv [new file with mode: 0644]
testo.d/realtime.test [new file with mode: 0644]
tpo.cc
unicsv.cc
vecs.cc
waypt.cc
xcsv.cc